home *** CD-ROM | disk | FTP | other *** search
/ Computer Life: SuperPac / SuperPac (Computer Life Magazine)(Ziff-Davis)(1995).ISO / pc / demos / nmmdemo / nmmdemo.exe / TENDER.DXR / 00202.ls < prev    next >
Encoding:
Text File  |  1995-04-27  |  848 b   |  24 lines

  1. on reportGraphics
  2.   set frameList to []
  3.   sort(frameList)
  4.   repeat with counter = 1 to 300
  5.     if the castType of cast counter = #bitmap then
  6.       append(frameList, the fileName of cast counter)
  7.     end if
  8.   end repeat
  9.   set thefile to FileIO(mnew, "write", the pathName & "Graphic File Report")
  10.   if objectp(thefile) then
  11.     set nextLine to "Graphic File Report for" && QUOTE & the movieName & QUOTE & RETURN & "==================================================================" & RETURN & RETURN
  12.     thefile(mWriteString, nextLine)
  13.     repeat with counter = 1 to count(frameList)
  14.       set fileName to getAt(frameList, counter)
  15.       set nextLine to "File:" && string(fileName)
  16.       put RETURN after nextLine
  17.       thefile(mWriteString, nextLine)
  18.     end repeat
  19.     thefile(mdispose)
  20.   else
  21.     alert("Error generating report!")
  22.   end if
  23. end
  24.